 
package com.xbongbong.sys.domain.entity;

import com.xbongbong.paas.toolbox.util.DateUtil;
import com.xbongbong.paas.toolbox.wrap.Entity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;


/**
 * @author kaka
 */
@ToString
@Getter
@Setter
public class RegisteredCallBackEntity extends Entity {

	private static final long serialVersionUID = -3493936049059038936L;

	/**
	 * 主键id
	 */
	private Integer id;
	/**
	 * 公司ID
	 */
	private String corpid;
	/**
	 * 需要监听的事件类型，有16种，"user_add_org”, “user_modify_org”, “user_leave_org”,“org_admin_add”, “org_admin_remove”, “org_dept_create”, “org_dept_modify”, “org_dept_remove”, “org_remove”, “chat_add_member”, “chat_remove_member”, “chat_quit”, “chat_update_owner”, “chat
	 */
	private String callBackTag;
	/**
	 * 接收事件回调的url
	 */
	private String url;
	/**
	 * 添加时间
	 */
	private Integer addTime;
	/**
	 * 更新时间
	 */
	private Integer updateTime;
	/**
	 * 删除标记
	 */
	private Integer del;

	public RegisteredCallBackEntity() {
		int now = DateUtil.getInt();
		this.addTime = now;
		this.updateTime = now;
		this.del = 0;
	}
}

